/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '@/utils/request';

// 驿站出入库记录
export async function inboundAndOutboundRecords(params: {
  expressNo: string;
  phone?: string;
}): Promise<any> {
  return request('/CustomerService/inboundAndOutboundRecords', {
    method: 'POST',
    data: params,
  });
}

// 驿站账号信息
export async function innAccountInfo(params: { phone: string }): Promise<any> {
  return request('/CustomerService/innAccountInfo', {
    method: 'POST',
    data: params,
  });
}

// 注销驿站账号 - 获取验证码
export async function getSmsCode(params: { phone?: string; psw?: string }): Promise<any> {
  return request('/CustomerService/sendSmsCode', {
    method: 'POST',
    data: params,
  });
}
// 注销驿站账号
export async function closeInnAccount(params: { phone?: string; code?: string }): Promise<any> {
  return request('/CustomerService/closeInnAccount', {
    method: 'POST',
    data: params,
  });
}

// 短信发送查询
export async function getSmsSendSearch(params: { phone?: string; time?: string }): Promise<any> {
  return request('/CustomerService/smsSendSearch', {
    method: 'POST',
    data: params,
  });
}

// 获取云呼列表
export async function getCloudSmsList(params: { phone?: string; time?: string }): Promise<any> {
  return request('/CustomerService/cloudSms', {
    method: 'POST',
    data: params,
  });
}

// 充值查询
export async function getChargeList(params: {
  order_number: string;
  trade_number: string;
  time: string;
}): Promise<any> {
  return request('/CustomerService/payList', {
    method: 'POST',
    data: params,
  });
}

//提现查询
export async function getSustainList(params: {
  kb_type: string;
  username: string;
  trade_number: string;
  time: string;
}): Promise<any> {
  return request('/CustomerService/cashList', {
    method: 'POST',
    data: params,
  });
}

//实名寄递查询
export async function getWayBillSearch(params: { waybill: string }): Promise<any> {
  return request('/CustomerService/wayBillSearch', {
    method: 'POST',
    data: params,
  });
}

// 查验证码
export async function getVerCodeList(params: { type: string; phone: string }): Promise<any> {
  return request('/CustomerServiceV2/sms', {
    method: 'POST',
    data: params,
  });
}

// 查手机号绑定巴枪
export async function getDeliveryList(params: { waybill: string }): Promise<any> {
  return request('/CustomerService/GetDeliveryList', {
    method: 'POST',
    data: params,
  });
}

//单号回收查询
export async function checkReclaimWaybill(params: { waybill: string }): Promise<any> {
  return request('/CustomerService/checkReclaim', {
    method: 'POST',
    data: params,
  });
}

// 单号查工号
export async function getWaybillFromNo(params: { waybill: string }): Promise<any> {
  return request('/CustomerService/getWaybillFromNo', {
    method: 'POST',
    data: params,
  });
}

// 中通工号同步
export async function syncZtCounterman(params: { code: string }): Promise<any> {
  return request('/BasicInfo/syncZtCounterman', {
    method: 'POST',
    data: params,
  });
}

// 检测敏感字
export async function getSmsSensitiveWord(params: { content: string }): Promise<any> {
  return request('/SmsSensitiveWords/getSmsSensitiveWord', {
    method: 'POST',
    data: params,
  });
}

// 查询
export async function getMobileData(params: {
  brand: string | undefined;
  waybillno: string | undefined;
  date: string;
}): Promise<any> {
  return request('/CustomerServiceV2/queryTrdinfo', {
    method: 'POST',
    data: params,
  });
}

// 获取品牌
export async function getBrandList(): Promise<any> {
  return request('/CustomerServiceV2/getTrdBrand', {
    method: 'POST',
  });
}

// 获取账号操作信息
export async function getAccountOperationLog(params: any): Promise<any> {
  return request('/CustomerService/accountOperationLog', {
    method: 'POST',
    data: params,
  });
}
